var a = this.options.form.getWidgetByName("A").getValue();
if(a=='横向'){
var sheet_name="纵向";
var $sheet=$("li[title="+sheet_name+"]");
if($sheet.find("span").hasClass("fr-sheetbutton-endpart")){
$sheet.prev().find("span[class='fr-sheetbutton-thirdpart']").attr("class","fr-sheetbutton-endpart");
};
$sheet.remove();
contentPane.loadSheetByName(a);
this.options.form.getWidgetByName("AAA").setVisible(true);
this.options.form.getWidgetByName("BBB").setVisible(true);
this.options.form.getWidgetByName("date_cont").setVisible(true);
this.options.form.getWidgetByName("label1_c").setVisible(true);
this.options.form.getWidgetByName("company_name_c").setVisible(false);
this.options.form.getWidgetByName("Labelcompany_name_c").setVisible(false);
}else {
var sheet_name="横向";
var $sheet=$("li[title="+sheet_name+"]");
if($sheet.find("span").hasClass("fr-sheetbutton-endpart")){
$sheet.prev().find("span[class='fr-sheetbutton-thirdpart']").attr("class","fr-sheetbutton-endpart");
};
$sheet.remove();
contentPane.loadSheetByName(a);
this.options.form.getWidgetByName("AAA").setVisible(false);
this.options.form.getWidgetByName("BBB").setVisible(false);
this.options.form.getWidgetByName("date_cont").setVisible(false);
this.options.form.getWidgetByName("label1_c").setVisible(false);
this.options.form.getWidgetByName("company_name_c").setVisible(true);
this.options.form.getWidgetByName("Labelcompany_name_c").setVisible(true);
}